package com.itheima.reggie.common;

public class BaseContext {

    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrendId(Long id){
        threadLocal.set(id);
    }

    public static Long getCurrendId(){
        return threadLocal.get();
    }

    public static void setCurrentId(Long userId) {
        threadLocal.set(userId);
    }
}
